public class login {
    private login(){

    }
    static String name;
    String pass;

    public static void print(int i){
        for (int j = 0; j <i; j++) {
            System.out.println(i);
        }
        //类方法中能访问类变量，不能访问实例方法和实例变量
        name = "tian";

    }



    public void printTest(){
        print(1);
        name =" tian";
        pass = "123";
    }
}

